package cn.tedu.mall1.personal.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PersonalOrderDTO {
    @ApiModelProperty(value = "订单列表号")
    Integer orders;
    @ApiModelProperty(value = "订单号")
    Long orderNumber;
    @ApiModelProperty(value = "状态")
    Integer status;
    @ApiModelProperty(value = "地址")
    String address;
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date orderTime;
}
